<?php
namespace app\clear\controller;

use app\common\base\BasicRest;
use think\Db;

class Clear extends  BasicRest
{
    public function clear(){
        Db::table('record')->where('id','>',0)->delete();
        Db::table('userInfo')->where('id','>',0)->delete();
        echo 'ok';
    }
    public function time(){
    	Db::table('time')->where(['id'=>1])->update(['start_time'=>$this->request->get('start_time'),'end_time'=>$this->request->get('end_time')]);
    	echo 'ok';
    }
}
